<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>人力资源管理系统_登录</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow:hidden;
}
.STYLE1 {
	font-size: 12px;
	color: #a1c8c6;
}
.STYLE4 {color: #FFFFFF; font-size: 12px; }
-->
</style>
<script language="javascript">
	function closeWindow(){
		this.window.close();
	}
	function isUserValidate(){
		var un = document.getElementById("userAccount");
		var pw = document.getElementById("userPassword");
		if (un.value == ""){
			alert("请输入账号！");
			un.focus();
			return false;
		}
		if (pw.value == ""){
			alert("请输入密码!");
			pw.focus();
			return false;
		}
		return true;
	}
	function setUserNameUI(){
		var un = document.getElementById("userAccount");
		if (un != null && un != " "){
			un.select();
		}
	}
</script>
</head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="035551">&nbsp;</td>
  </tr>
  <tr>
    <td height="311" background="img/login_03.gif"><table width="758" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="210" background="img/login1.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td height="101"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="446" height="101" background="img/login_06.gif">&nbsp;</td>
            <td width="156">
			<form name="loginForm" action="user!login" method="post">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td width="29%" height="22"><span class="STYLE4">用户名</span></td>
					<td width="71" height="22"><input onclick="setUserNameUI();" name="userAccount" type="text" id="userAccount" style="width:100px; height:16px; border:solid 1px #000000; color:#666666"></td>
				  </tr>
				  <tr>
					<td height="22"><span class="STYLE4">密&nbsp;&nbsp;&nbsp;&nbsp;码</span></td>
					<td height="22"><input name="userPassword" type="password" id="userPassword" style="width:100px; height:16px; border:solid 1px #000000; color:#666666"></td>
				  </tr>
				  <tr>
					<td height="25">&nbsp;</td>
					<td height="25">
						<input type="image" src="img/dl.gif" onClick="return isUserValidate();">
						<img src="img/qx.gif" width="37" height="19" onMouseOver="this.style.cursor='hand';" onClick="closeWindow();"></td>
				  </tr>
				</table>
			</form>
			</td>
            <td width="156" background="img/login_09.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="1f7d78">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="1f7d78"><div align="center"><span class="STYLE1">-- Copyright 2011 &copy; Ruby Sanctum All Rights Reserved--</span></div></td>
  </tr>
</table>
</body>
</html>
